import './App.css'
import React from 'react'
import picture from './picture.jpg'


class App extends React.Component {

  handleButton = () => {
    this.props.history.push('/login')
  }
  render () {
    return (
      <div>
        <img src={picture} alt="back_picture" className="body-picture" />
        <p className="body-text">Hello 欢迎来到331工作室</p>
        <button onClick={this.handleButton} className="body-button">打开大门</button>
      </div>
    )
  }
}
//暴露APP组件
export default App;